package lianxi01;

import java.util.Enumeration;
import java.util.Scanner;

public class LianXi10 {
    public static void main(String[] args) {
        //数字金字塔的练习
        System.out.println("请输入你想要几行数字：");
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        for (int j =0 ; j <num; j++) {
            for (int a = num; a >j; a--) {
                System.out.print(" ");
            }
            for (int i = 0; i < (2*j+1); i++) {
                System.out.print((j+1));
            }
            System.out.println("");
        }
    }
}
